<template>
	<view class="loading">
		<view class="spinner"></view>
	</view>
</template>

<script>
</script>

<style lang="scss" scoped>
	.loading {
		padding: 24rpx;
		display: flex;
		justify-content: center;
		align-items: center;

		.spinner {
			width: 48rpx;
			height: 48rpx;
			border: 6rpx solid rgba(0, 0, 0, 0.1);
			border-top: 6rpx solid $uni-primary;
			border-radius: 50%;
			animation: spin 1s linear infinite;
		}

		@keyframes spin {
			0% {
				transform: rotate(0deg);
			}

			100% {
				transform: rotate(360deg);
			}
		}
	}
</style>